﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PartyFinderMP.master" AutoEventWireup="true" CodeFile="HomePage.aspx.cs" Inherits="Index_HomePage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <br />
            <asp:Button ID="SearchParty" CssClass="btn" Width="385px" Height="80" Font-Size="30px" runat="server" Text="Søg efter Fest" OnClick="SearchParty_Click" />
            <asp:Button ID="CreateParty" CssClass="btn" Width="385px" Height="80" Font-Size="30px" runat="server" Text="Lav ny Fest" OnClick="CreateParty_Click" />

        <table class="Homepage_tables">
            <tr>
                <td>
                    <h4>Deltagende fester:</h4>
                </td>
                <td>
                    
                    <h4>Mine fester:</h4>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:ListView ID="LWParticipatingPartys" runat="server">
                        <LayoutTemplate>
                            <div class="Homepage_Listlayout">
                                <table class="table">
                                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
                                </table>

                            </div>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <a href="/PartyFinder/Index/PartySite.aspx?PartyId=<%#Eval("PartyId") %>" class="Homepage_link">
                                        <asp:Label ID="LaTema" Font-Bold="true" Text='<%#Eval("Tema") %>' runat="server" />
                                        den
                                            <asp:Label ID="LaDate" Font-Bold="true" Text='<%#Eval("Date") %>' runat="server" />
                                    </a>

                                </td>
                            </tr>

                        </ItemTemplate>
                    </asp:ListView>
                </td>
                <td>
                    
                    <asp:ListView ID="LWMyPartys" runat="server">
                        <LayoutTemplate>
                            <div class="Homepage_Listlayout">
                                <table class="table">
                                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
                                </table>
                            </div>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <a href="/PartyFinder/Index/PartySite.aspx?PartyId=<%#Eval("PartyId") %>" class="Homepage_link">
                                        <asp:Label ID="LaTema" Font-Bold="true" Text='<%#Eval("Tema") %>' runat="server" />
                                        den
                                            <asp:Label ID="LaDate" Font-Bold="true" Text='<%#Eval("Date") %>' runat="server" />
                                    </a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:ListView>
                </td>
            </tr>
        </table>
    </div>


</asp:Content>

